* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #0056a9, #003366);
    padding: 15px 0;
    color: white;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
    margin-left: 10px;
}

.logo-icon {
    font-size: 32px;
    color: #ffcc00;
}

.search-box {
    display: flex;
    width: 350px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-box button {
    background: #ffcc00;
    color: #333;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #e6b800;
}

/* 导航栏样式 */
nav {
    background: #003366;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: #0056a9;
}

.nav-menu a.active {
    background: #ffcc00;
    color: #003366;
}

/* 图片展示区 */
.banner {
    height: 450px;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 86, 169, 0.7)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.banner-content {
    max-width: 800px;
    padding: 20px;
}

.banner h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ffcc00;
    color: #003366;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid #ffcc00;
}

.btn:hover {
    background: transparent;
    color: #ffcc00;
}

/* 新闻版块 - 4宫格布局 */
.section-title {
    text-align: center;
    margin: 30px 0;
    position: relative;
    color: #003366;
}

.section-title h2 {
    font-size: 32px;
    display: inline-block;
    padding: 0 20px;
    background: #f5f7fa;
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #003366;
    z-index: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-img {
    height: 180px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #003366;
}

.news-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.news-date {
    color: #ffcc00;
    font-weight: bold;
    font-size: 14px;
}

/* 公告版块 */
.announcement-section {
    background: #003366;
    color: white;
    padding: 40px 0;
    margin-bottom: 50px;
}

.announcement-container {
    display: flex;
    gap: 40px;
}

.announcement-list {
    flex: 1;
}

.announcement-list h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffcc00;
    border-left: 4px solid #ffcc00;
    padding-left: 15px;
}

.announcement-item {
    padding: 15px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item a {
    color: white;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s;
}

.announcement-item a:hover {
    color: #ffcc00;
}

.announcement-date {
    color: #ccc;
    font-size: 14px;
}

/* 主内容区 */
.main-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.content-block {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.content-header {
    background: #003366;
    color: white;
    padding: 15px 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.content-header i {
    margin-right: 10px;
    color: #ffcc00;
}

.content-body {
    padding: 20px;
}

.content-list {
    list-style: none;
}

.content-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.content-list li:last-child {
    border-bottom: none;
}

.content-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    justify-content: space-between;
}

.content-list a:hover {
    color: #0056a9;
}

.content-list .date {
    color: #999;
    font-size: 14px;
}

/* 专题网站版块 - 12宫格布局 */
.special-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.special-item {
    background: white;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.special-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    background: #003366;
    color: white;
}

.special-item i {
    font-size: 36px;
    margin-bottom: 15px;
    color: #0056a9;
}

.special-item:hover i {
    color: #ffcc00;
}

.special-item h4 {
    font-size: 16px;
}

/* 页脚样式 */
footer {
    background: #002244;
    color: #ccc;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    padding: 0 15px;
}

.footer-column h3 {
    color: #ffcc00;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffcc00;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .special-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .main-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content .content-block:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 15px;
        justify-content: center;
    }

    .search-box {
        width: 100%;
        max-width: 500px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .announcement-container {
        flex-direction: column;
    }

    .special-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-column {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .main-content .content-block:last-child {
        grid-column: span 1;
    }

    .special-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner h2 {
        font-size: 36px;
    }

    .banner p {
        font-size: 16px;
    }
}